﻿using System.Threading.Tasks;
using SmartCity.Shared;
using Volo.Abp.Application.Services;

namespace ParkManagement
{
    /// <summary>
    /// 纠错应用服务类
    /// </summary>
    public class CorrectAppService : ApplicationService, ICorrectAppService
    {
        private readonly CorrectManager _correctManager;

        public CorrectAppService(
            CorrectManager correctManager)
        {
            _correctManager = correctManager;
        }

        // 创建
        public async Task<ActionResponse> CreateAsync(CreateCorrectDto input)
        {
            await _correctManager.CreateAsync(
                input.Name,
                input.Photo,
                input.Content,
                input.Remark,
                input.SpotCount);
            return ActionResponse.Successful();
        }
    }
}